package com.wechatmall.api.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * </p>
 *
 * @author zpc
 * @since 2025-09-24 02:24:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("merchant_permissions")
@Schema(name = "MerchantPermissions", description = "实体")
public class MerchantPermissions implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String id;

    @Schema(description = "创建时间", example = "2024-01-01T12:00:00", accessMode = Schema.AccessMode.READ_ONLY)
    private String createdAt;

    @Schema(description = "描述", example = "示例值")
    @TableField("`description`")
    private String description;

    @Schema(description = "是否启用", example = "示例值")
    private String isEnabled;

    @Schema(description = "商家ID", example = "示例值")
    private String merchantId;

    @Schema(description = "权限码", example = "示例值")
    private String permissionCode;

    @Schema(description = "权限名称", example = "示例值")
    private String permissionName;
}